package cn.signalpha.modules.base.service;

import cn.signalpha.modules.base.entity.Complaint;
import cn.signalpha.modules.base.mapper.ComplaintMapper;
import cn.signalpha.modules.base.vo.ComplaintVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 服务类
 *
 * @author signalpha
 */
@Service
public class ComplaintService extends ServiceImpl<ComplaintMapper, Complaint> {

	/**
	 * 自定义分页
	 */
    public IPage<ComplaintVO> selectComplaintPage(IPage<ComplaintVO> page, Map<String, Object> params) {
        return page.setRecords(baseMapper.selectComplaintPage(page, params));
    }

}

